package com.health.db.mapper;

import java.util.List;

import com.health.db.model.PatientShortInfo;
import com.health.db.model.PatientShortInfoExample;

public interface PatientShortInfoMapper {
    long countByExample(PatientShortInfoExample example);

    int deleteByExample(PatientShortInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PatientShortInfo record);

    int insertSelective(PatientShortInfo record);

    List<PatientShortInfo> selectByExample(PatientShortInfoExample example);

    PatientShortInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PatientShortInfo record);

    int updateByPrimaryKey(PatientShortInfo record);
    
    String selectMedicalCardNoKey();
    
    List<PatientShortInfo> selectByUserId(Long userId);
    
    List<PatientShortInfo> selectByMedicalCardNo(String medicalCardNo);
    
    
}